package com.ter;

import java.util.ArrayList;

import javax.swing.JTable;
import javax.swing.event.TableModelListener;

public class MyJTable extends JTable implements TableModelListener{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public MyJTable(MyJTableModel modele){
		super();
		setModel(modele);
	}
	public MyJTable(String titre[]){
		super(new MyJTableModel(titre));
	}
	public MyJTable(String titre[],ArrayList<Object> data[]){
		super(new MyJTableModel(titre, data));
	}
	public  MyJTableModel getMyJTableModel(){
		return (MyJTableModel) getModel();
	}
	public void setMyJTableModel(MyJTableModel modele){
		setModel(modele);
	}


}
